//
//  GlobalData.h
//  EcCommon
//
//  Created by wuxian on 13-11-21.
//  Copyright (c) 2013年 wuxian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <BaiduMapAPI_Map/BMKMapComponent.h>

#define DistanceMeters 5000

@interface GlobalData : NSObject
@property (strong, nonatomic) NSDictionary *userinfoDic;
@property (nonatomic) BOOL isNewLeft;
@property (nonatomic) BOOL isNewRight;
@property (nonatomic) BOOL isNewArea;
@property (nonatomic) BOOL isNewVersion;
@property (nonatomic) CLLocationCoordinate2D uselocation;
@property (strong, nonatomic) BMKUserLocation *bUserLocation;

+ (id)sharedGlobalData;
+ (NSMutableDictionary *)paramterDic;

+ (NSAttributedString *)getAttriStrWithStr1:(NSString *)str1 str2:(NSString *)str2 str3:(NSString *)str3;
+ (BOOL)validateUserName:(NSString *)str;
+ (BOOL)validateUserPasswd:(NSString *)str;
+ (BOOL)isValidateEmail:(NSString *)email;
+ (BOOL)checkTel:(NSString *)str;
+ (BOOL)isValidateMobileOrTel:(NSString *)str;

+ (UIColor *)fontColor;
+ (BOOL)APCheckIfAppInstalled2:(NSString *)urlSchemes;
+ (BOOL)locationServicesEnabled;

- (void)getData;
- (void)clearData;
- (void)phoneBtnActWithNum:(NSString *)phoneNum;

+ (NSString*)getStringValue:(id)value;

@end
